﻿const request = require('./request');

import { read } from './response';

function makeRequest(url,data){
    request.send(url,data);
    return read();
}

const responseData =  makeRequest('http://www.jd.com','hello');

console.log(responseData);